package cn.edu.dgut.experiment3.Initialzation;

import cn.edu.dgut.experiment3.dao.RegionDao;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Initialzation implements InitializingBean {

    @Autowired
    RegionDao regionDao;

    @Override
    public void afterPropertiesSet() throws Exception {
        regionDao.pullData();
        System.out.println("项目初始化");
    }
}
